import {request} from "../../request";

export function getReceiptdetailById(id){
    return request({
        url:`/lswms/receiptdetail/${id}`,
        method:'get'
    })
}


export function getReceiptdetailList(data){
    return request({
        url:'/lswms/receiptdetail/page',
        method:'put',
        data:data
    })
}

export function putReceiptdetail(data){
    return request({
        url:'/lswms/receiptdetail',
        method:'put',
        data:data
    })
}

export function postReceiptdetail(data){
    return request({
        url:'/lswms/receiptdetail',
        method:'post',
        data:data
    })
}

export function deleteReceiptdetail(data){
    return request({
        url:`/lswms/receiptdetail`,
        method:'delete',
        data:data
    })
}

export function exportReceiptdetail(data){
    return request({
        url:`/lswms/receiptdetail/export`,
        method:'get',
        data:data,
        responseType:'blob'
    })
}


export function getReceiptdetailCount(receiptkey){
    return request({
        url:`/lswms/receiptdetail/count/${receiptkey}`,
        method:'get'
    })
}